﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using DevExpress.LookAndFeel;

namespace Exact_Extension
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ExactDataContext DS = new ExactDataContext();
            DevExpress.Skins.SkinManager.EnableFormSkins();
            DevExpress.UserSkins.BonusSkins.Register();
            UserLookAndFeel.Default.SetSkinStyle("Glass Oceans");
            if (args.Length > 0)
            {
               

                //if (args[0] == "0")
                //{
                //    Application.Run(new InitializeTFInvoice(DS));
                //}
                //if (args[0] == "1")
                //{
                //    Application.Run(new InitializeAPPFInvoice(DS));
                //}
                //if (args[0] == "2")
                //{
                //    Application.Run(new InitializeCOEInvoice(DS));
                //}
                //if (args[0] == "3")
                //{
                //    Application.Run(new DiscountMaster(DS));
                //}
                //if (args[0] == "4")
                //{
                //    Application.Run(new Discount(DS));
                //}
                //if (args[0] == "5")
                //{
                //    Application.Run(new SectionMaster(DS));
                //}
                //if (args[0] == "6")
                //{
                //    Application.Run(new ProformaInvoice(DS));
                //}
                //if (args[0] == "7")
                //{
                //    Application.Run(new SpecialDiscount(DS));
                //}
                //if (args[0] == "8")
                //{
                //    Application.Run(new SpecialDiscountAuthorize(DS));
                //}
                //if (args[0] == "9")
                //{
                //    Application.Run(new InitializeREENFInvoice(DS));
                //}
                //if (args[0] == "10")
                //{
                //    Application.Run(new COETransfer(DS));
                //}
            }
            else
            {
             //  Application.Run(new Discount(DS));
                // Application.Run(new GroupInvoice(DS));
                // Application.Run(new InitializeTFInvoice(DS));
               // Application.Run(new InitializeAPPFInvoice(DS));
                //Application.Run(new Discount(DS));
                //  Application.Run(new DiscountMaster(DS));
                //  Application.Run(new SectionMaster(DS));
                // Application.Run(new InitializeCOEInvoice(DS));
               //  Application.Run(new ProformaInvoice(DS));
                //Application.Run(new SpecialDiscount(DS));
                // Application.Run(new SpecialDiscountAuthorize(DS));
                // Application.Run(new SendInvoice(DS));
              // Application.Run(new COETransfer(DS));
                Application.Run(new MainForm());
                //Application.Run(new DebtorRegisterForm(DS));
             //   Application.Run(new ImportCashBank(DS));
            }

         
        }
    }
}